package com.syy.spider.dao;

import com.syy.spider.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper {
    int addComment(@Param("comment") String comment, @Param("username") String username);

    List<Comment> getComments();

    Comment selectCommentById(@Param("id") int id);

    int addRes(@Param("comment") String comment, @Param("username") String username, @Param("id") int id, @Param("lu") String user1);

    List<Comment> getResponses(@Param("id") int id);
}
